<form name="editForm" role="form" novalidate (ngSubmit)="save()" #editForm="ngForm">

    <div class="modal-header">
        <h4 class="modal-title" id="myWxUserLabel" jhiTranslate="notebookWxappApp.wxUser.home.createOrEditLabel">Create or edit a Wx User</h4>
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true"
                (click)="clear()">&times;</button>
    </div>
    <div class="modal-body">
        <jhi-alert-error></jhi-alert-error>
        <div class="form-group" [hidden]="!wxUser.id">
            <label for="id" jhiTranslate="global.field.id">ID</label>
            <input type="text" class="form-control" id="id" name="id"
                   [(ngModel)]="wxUser.id" readonly />
        </div>
        <div class="form-group">
            <label class="form-control-label" jhiTranslate="notebookWxappApp.wxUser.openId" for="field_openId">Open Id</label>
            <input type="text" class="form-control" name="openId" id="field_openId"
                [(ngModel)]="wxUser.openId" />
        </div>
        <div class="form-group">
            <label class="form-control-label" jhiTranslate="notebookWxappApp.wxUser.nickName" for="field_nickName">Nick Name</label>
            <input type="text" class="form-control" name="nickName" id="field_nickName"
                [(ngModel)]="wxUser.nickName" />
        </div>
        <div class="form-group">
            <label class="form-control-label" jhiTranslate="notebookWxappApp.wxUser.city" for="field_city">City</label>
            <input type="text" class="form-control" name="city" id="field_city"
                [(ngModel)]="wxUser.city" />
        </div>
        <div class="form-group">
            <label class="form-control-label" jhiTranslate="notebookWxappApp.wxUser.province" for="field_province">Province</label>
            <input type="text" class="form-control" name="province" id="field_province"
                [(ngModel)]="wxUser.province" />
        </div>
        <div class="form-group">
            <label class="form-control-label" jhiTranslate="notebookWxappApp.wxUser.country" for="field_country">Country</label>
            <input type="text" class="form-control" name="country" id="field_country"
                [(ngModel)]="wxUser.country" />
        </div>
        <div class="form-group">
            <label class="form-control-label" jhiTranslate="notebookWxappApp.wxUser.avatarUrl" for="field_avatarUrl">Avatar Url</label>
            <input type="text" class="form-control" name="avatarUrl" id="field_avatarUrl"
                [(ngModel)]="wxUser.avatarUrl" />
        </div>

    </div>
    <div class="modal-footer">
        <button type="button" class="btn btn-secondary" data-dismiss="modal" (click)="clear()">
            <span class="fa fa-ban"></span>&nbsp;<span jhiTranslate="entity.action.cancel">Cancel</span>
        </button>
        <button type="submit" [disabled]="editForm.form.invalid || isSaving" class="btn btn-primary">
            <span class="fa fa-save"></span>&nbsp;<span jhiTranslate="entity.action.save">Save</span>
        </button>
    </div>
</form>
